import React from "react";
import {
    HashRouter,
    Switch,
    Route
} from "react-router-dom";
import Login from './component/login'
import Header from './component/header'

class router extends React.Component {

    render() {
        return (
            <div>
                <HashRouter>
                    <Switch>
                        <Route path="/login" component={Login}></Route>
                        <Route path="/" component={Header}></Route>
                    </Switch>
                </HashRouter>
            </div>
        );
    }
}

export default router;